<?
	Yii::app()->clientscript
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap.min.css' )
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap-responsive.min.css' )
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/font-awesome.min.css' )
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootswatch.css' )
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/main.css' )
		// use it when you need it!
			
		->registerCoreScript( 'jquery' )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-transition.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-alert.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-modal.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-dropdown.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-scrollspy.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tab.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tooltip.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-popover.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-button.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-collapse.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-carousel.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-typeahead.js', CClientScript::POS_END )
				

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<meta name="description" content="<?php echo $this->description;?>" />
	<meta name="keywords" content="<?php echo $this->keywords;?>" />
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
	<script>
	  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
	  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
	  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
	  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

	  ga('create', 'UA-40893853-1', 'pc2mobi.net');
	  ga('send', 'pageview');
	</script>
</head>

<body class="preview" id="top" data-spy="scroll" data-target=".subnav" data-offset="80">

<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</a>
			<a href="/" class="brand">PC2MOBI</a>
			<div id="main-menu" class="nav-collapse collapse">
				<?php $this->widget('zii.widgets.CMenu',array(
					'id' => 'main-menu-left',
					'items'=>array(
						array('label' => Yii::t('common', 'Home'), 'url' => array('/site/index')),
						array('label' => Yii::t('module_contact', 'Contacts'), 'url' => array('/contact/default/index')),
						array('label' => Yii::t('module_user', 'Register'), 'url' => Yii::app()->createAbsoluteUrl('user/default/register'), 'linkOptions' => array('class' => 'fancybox'), 'visible'=>Yii::app()->user->isGuest),
						array('label' => Yii::t('module_user', 'Profile'), 'url' => Yii::app()->createAbsoluteUrl('user/default/edit'), 'linkOptions' => array('class' => 'fancybox'), 'visible'=>!Yii::app()->user->isGuest),
						array('label' => Yii::t('module_user', 'Login'), 'url' => Yii::app()->createAbsoluteUrl('site/login'), 'linkOptions' => array('class' => 'fancybox'), 'visible'=>Yii::app()->user->isGuest),
						array('label' => Yii::t('module_user', 'Logout'), 'url' => Yii::app()->createAbsoluteUrl('site/logout'), 'visible'=>!Yii::app()->user->isGuest),
					),
					'htmlOptions' => array(
						'class' => 'nav'
					)
				));
				
				$this->widget('application.widgets.LangSelect.WLangSelect');
				
				$this->widget('ext.fancybox.EFancyBox', array(
					'target'=>'a.fancybox',
					'config'=>array(),
					));
				?>
			</div>
		</div>
	</div>
</div>

	
	
<div class="container" id="page">
	
	<header>
		<?php 
			$error = Yii::app()->user->getFlash('error');
			if (!empty($error)): ?>
			<div class="alert alert-error fade in"><a href="#" class="close" data-dismiss="alert">×</a><?php echo $error; ?></div>
		<?php endif;?>
		<?php 
			$notice = Yii::app()->user->getFlash('notice');
			if (!empty($notice)): ?>
			<div class="alert alert-info fade in"><a href="#" class="close" data-dismiss="alert">×</a><?php echo $notice; ?></div>
		<?php endif;?>
		<?php 
			$success = Yii::app()->user->getFlash('success');
			if (!empty($success)): ?>
			<div class="alert alert-success fade in"><a href="#" class="close" data-dismiss="alert">×</a><?php echo $success; ?></div>
		<?php endif;?>
	</header>

	
	<section>
		<div class="row">
			<?php echo $content; ?>
		</div>
	</section>

	<br/>
	<br/>
</div><!-- page -->
	<footer id="footer" class="container">
		<hr/>
		<div class="links">
        </div>
		
		<?= Yii::t('common', 'Copyright &copy date by IridisTeam<br/>All Rights Reserved.', array('date' => date('Y'))); ?>
	</footer><!-- footer -->

</body>
</html>